package com.example.demo.service;

import com.example.demo.mapper.CompanyInfoMapper;
import com.example.demo.model.CompanyInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CompanyInfoService {
    @Autowired
    private CompanyInfoMapper companyInfoMapper;

    public List<CompanyInfo> getCompanyInfo(String companyName) {
        return companyInfoMapper.getCompanyInfoByCompanyName(companyName);
    }

    public void updateCompanyInfo(CompanyInfo companyInfo) {
        companyInfoMapper.updateCompanyInfo(companyInfo);
    }
}